<?php

use Illuminate\Database\Seeder;

class AdminsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('admins')->insert([
            'role_id' => 1,
            'role_name' => '超级管理员',
            'nickname'  => '蓝胖子',
            'realname'=>'吴彪',
            'bio' => config('self.default-bio'),
            'poster'=>config('self.default-poster'),
            'sex'=>'0',
            'password' => bcrypt('admin'),
            'email'=>'1304820920@qq.com',
            'phone'=>'17600202921',
            'avatar'=> config('self.default-avatar'),
            'status'=>1,
            'created_at'=>\Carbon\Carbon::now()->toDateTimeString(),
            'updated_at'=>\Carbon\Carbon::now()->toDateTimeString(),
        ]);
    }
}
